package com.softline.documentsmall.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * 全局异常处理，目前针对于全局controller处理
 * @author zhongweicheng
 * @date 2020/8/27 15:55
 */
@ControllerAdvice
public class GlobalException {

    @ExceptionHandler(CustomException.class)
    public String test(){
        return "error!";
    }

}
